package vanhoc.android.utils;

import android.app.Activity;
import android.content.Context;
import android.view.ViewGroup;

import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
import com.telpoo.truyencuoi.R;

public class Utils {
	
	private static final String admob = "a1536882509f4e1";

	public static void setupAds(Activity context,ViewGroup rootAdView){
		
		AdView adView=new AdView(context);
		rootAdView.addView(adView);
		adView.setAdSize(AdSize.SMART_BANNER);
		adView.setAdUnitId(Utils.admob);
		AdRequest adRequest=new AdRequest.Builder().build();
		adView.loadAd(adRequest);
		
		
	}
}
